import java.util.Scanner;

public class interfaceTextoCaballo
{
    public static void main (String arg[]) {
        Scanner sc = new Scanner(System.in);
        int i = 0;
        int j = 0;
        
        do {
            System.out.println ("Introduce la fila (0-7): ");
            i = sc.nextInt();
        } while (i < 0 || i > 7);
        
        do {
            System.out.println ("Introduce la columna (0-7): ");
            j = sc.nextInt();
        } while (j < 0 || j > 7);
        
        Caballo cb = new Caballo();
        cb.procesar(i, j);
        cb.escribir();
    }
}
